package com.lingjtx.common.thread.commom;

import com.lingjtx.common.thread.config.ExecutorConfig;
import org.springframework.context.ApplicationEvent;

public class ThreadPoolRefreshEvent extends ApplicationEvent {

    private final String name;
    private final ExecutorConfig.PoolConfig config;

    public ThreadPoolRefreshEvent(Object source, String name, ExecutorConfig.PoolConfig config) {
        super(source);
        this.name = name;
        this.config = config;
    }

    public String getName() {
        return name;
    }

    public ExecutorConfig.PoolConfig getConfig() {
        return config;
    }
}
